home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
libs
/
unixlib.lha
/
unix
/
src
/
isatty.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-10-09
|
235b
|
15 lines
#include "amiga.h"
#include <amiga/ioctl.h>
extern int ioctl(int fd, int request, void *data);
int isatty(int fd)
{
int istty;
__chkabort();
if (ioctl(fd, _AMIGA_INTERACTIVE, &istty) != 0)
return 0;
return istty;
}